cmake_minimum_required(VERSION 3.0.2)
project(joy_control)

find_package(catkin REQUIRED COMPONENTS
  roscpp
  sensor_msgs
  std_msgs
  mavros_msgs
  geometry_msgs
)


set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")


catkin_package(
    DEPENDS
    roscpp
    sensor_msgs
)


include_directories(${catkin_INCLUDE_DIRS})

find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})

add_executable(keyboard src/keyboard.cpp)

target_link_libraries(keyboard ${catkin_LIBRARIES} ${OpenCV_LIBS})

